#include <dolphin/ip.h>
typedef struct IPInterfaceStat IPInterfaceStat;
struct IPInterfaceStat
{
u32 inUcastPackets; // Input unicast packets
u32 inNonUcastPackets; // Input broadcast or multicast packets
u32 inDiscards; // Input dropped due to ins. resources
u32 inErrors; // Packets dropped on input
u32 outUcastPackets; // Output unicast packets
u32 outNonUcastPackets; // Output broadcast or multicast packets
u32 outDiscards; // Output dropped due to ins. resources
u32 outErrors; // Output errors
u32 outCollisions; // Collisions on CSMA
};
void IPGetInterfaceStat( IPInterface* interface, IPInterfaceStat* stat);
IPGetInterfaceStat() gets the statistics collected in the
specified network interface.
interface |
Pointer to IPInterface to get the statistics. Use
NULL to specify the default network interface. |
stat |
Pointer to IPInterfaceStat to store the statistics. |
None.